{template 'common/header'}


<style>
    .mathyts{
        overflow:hidden;

    }
    .mathyts span{
        float:left;
        line-height:36px;
    }
    .form-control_s{
        float:right;
        width:60%;
    }
</style>
<ul class="nav nav-tabs">
	<li class="active"><a href="{php echo $this->createWebUrl('articles')}">咨询列表</a></li>
	<li><a href="{php echo $this->createWebUrl('article_post')}">添加资讯</a></li>
</ul>
<div class="clearfix">

	<div class="panel panel-default">
		<div class="panel-heading">筛选</div>
		<div class="panel-body">
			<form action="" method="post" class="form-horizontal" role="form" id="form">
				<div class="form-group">
					<div class="col-md-4 mathyts" >
                       <select  name="order_status" class="form-control form-control_s" >
                           <option value="1" {if $order_status==1}selected{/if}>标题</option>
                       </select>
                    </div>
					<div class="col-md-5">
						<input type="text" class="form-control" name="keyword" id="keyword" value="{$keyword}">
					</div>
					<div class="pull-right col-md-2">
						<button type="submit" class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
					</div>
				</div>
			</form>
		</div>
	</div>
	<div class="panel panel-default">
		<div class="table-responsive">
			<table class="table table-hover">
				<thead class="navbar-inner">
					<tr>
						<th style="width:5%;">id</th>
						<th style="width:10%;">资讯标题</th>
						<th style="width:10%;">资讯概要</th>
						<th style="width:10%;">更新时间</th>
						<th style="width:10%;">操作</th>
					</tr>
				</thead>
				<tbody>
				{loop $list $index $item}
					<tr id="{$item['id']}">
						<td>{$item['id']}</td>
						<td>{$item['title']}</td>
						<td>{$item['des']}</td>
						<td>{php echo date('Y-m-d H:i:s',$item['updated_at']);}</td>
						<td>
							<a href="{php echo $this->createWebUrl('article_post',array('id'=>$item['id']))}" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="top" title="" data-original-title="修改"><i class="fa fa-edit"></i></a>
							<a href="{php echo $this->createWebUrl('article_post',array('act'=>'del','id'=>$item['id']))}" class="btn btn-default btn-sm" data-toggle="tooltip" data-placement="top" title="" data-original-title="删除"><i class="fa fa-times"></i></a>
						</td>
					</tr>
				{/loop}
				{if empty($list) }
                <tr ng-if="!wechats">
                <td colspan="9" class="text-center">暂无数据</td>
                </tr>
                {/if}
				<tr>
					<td colspan="7" style="text-align:right">{$page}</td>
				</tr>
				</tbody>
			</table>
		</div>
	</div>
</div>
{template 'common/footer'}
